/**
 * @author fun.pengzh
 * @class PACKAGE_NAME.UserService
 * @desc
 * @since 2021-09-25
 */
public class UserService {

    private String name;

    private UserDAO userDAO;

    public UserService() {
    }

    public UserService(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void printUserInfo() {
        System.out.println(userDAO.query(name));
    }

}
